# $Id$
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=libmodplug
pkgver=0.8.9.0
pkgrel=1
pkgdesc="A MOD playing library"
arch=('i686' 'x86_64')
url="http://modplug-xmms.sourceforge.net/"
license=('custom')
depends=('gcc-libs')
source=(http://downloads.sourceforge.net/modplug-xmms/${pkgname}-${pkgver}.tar.gz)
sha1sums=('9d18572f85fdd95091befa972ee5d94139dcefde')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
